Release 10.1A: OpenEdge Deployment:
Managing 4GL Applications
Building a customized executable on UNIX
This section contains instructions for building 4GL client or AppServer™ executables running under UNIX to access custom C functions. The OEBuild script is located in the
oebuild/makedirectory under the root of your OpenEdge installation.
![]()
To build a UNIX 4GL client executable:
- Open a terminal and invoke a Bourne shell (
/bin/sh) on the system where OpenEdge is installed.- Change to user
root.- Run the PROENV utility to set the DLC variable. For example:
- Optionally set and export the environment variable
IMAGEto the full pathname of the executable to be generated. For example:Note: By default, the custom client executable is named
$DLC/oebuild/_progresif you are building the 4GL client (or WebSpeed agent) executable. It is$DLC/oebuild/_proapsvif you are building the AppServer agent executable.- Make sure that the environment variable
PATHcontains the directory to the supported compiler and linker on your system.- Unset all the library path variables for your operating system. The script will set these variables as required. For example, on HP-UX:
- Make a backup copy of the original OEBuild link options script and the 4GL tie-in object used to access custom C functions,
hlprodsp.o. There are two versions of the OEBuild link options script, depending on the 4GL client executable you plan to build:- Edit the C source file for the 4GL tie-in object in order to tie in your C functions to the 4GL as explained in the source file comments. This file is located at the following path:
- Compile the new tie-in object. For example:
- Set and export the environment variable
HLC_OBJSto contain the paths of all objects that need to be included in your new OpenEdge executable, including the 4GL tie-in object you built in Step 9. For example:
- Run the OEBuild script located in
$DLC/oebuild/make, with no arguments.There are two versions of the OEBuild script, depending on the 4GL client executable you plan to build:
build_rx.sh— 4GL character client (or WebSpeedŽ agent) executable.build__proapsv.sh— AppServer agent executable.For example, to build a customized character client:
Note: If you do not set the
IMAGEvariable, as in Step 4, the client executable is built as$DLC/oebuild/_progresfor the 4GL character client agent or$DLC/oebuild/_proapsvfor the AppServer agent; otherwise, the executable is built as specified by$IMAGE.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |